package com.wang.myapplication.example;

import android.util.Log;

/**
 * Created by xhwang on 2018/3/21.
 */

public class Generalclass {

    public <T> void printMsg( T... args){
        for(T t : args){
            Log.d("泛型测试","t is " + t);
        }
    }

    public static <T>  void printT(T... args) {
        for(T t : args){
            Log.d("泛型测试","t is " + t);
        }
    }
}
